/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.question3.correctingLSP.Impl;

import za.ac.cput.assignment2.question3.correctingLSP.Person;

/**
 *
 * @author Ziyaad
 */
public class PersonImpl implements Person{
    
    private double weight;
    private double height;

    /**
     * @return the weight
     */
    public double getWeight() {
        return weight;
    }

    /**
     * @param weight the weight to set
     */
    public void setWeight(double wt) {
        weight = wt;
    }

    /**
     * @return the height
     */
    public double getHeight() {
        return height;
    }

    /**
     * @param height the height to set
     */
    public void setHeight(double ht) {
        height = ht;
    }

    @Override
    public double calcBMI() {
        
        return weight/height;
    }
    
}
